From: Jasper St. Pierre Date: Wed, 18 Sep 2013 23:48:51 +0000 (-0400) Subject: overviewControls: Don't try to align something sliding to the right X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3225 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=58a8845047f5dda2691fe2183a3d7a4a9f876af1;p=gnome-shell.git overviewControls: Don't try to align something sliding to the right 0 is already the correct value. https://bugzilla.gnome.org/show_bug.cgi?id=694881 --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index a415cc1b0..556ce3646 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -63,7 +63,7 @@ const SlideLayout = new Lang.Class({ // flags only determine what to do if the allocated box is bigger // than the actor's box. let realDirection = getRtlSlideDirection(this._direction, child); - let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : (natWidth - availWidth); + let alignX = (realDirection == SlideDirection.LEFT) ? (availWidth - natWidth) : 0; let actorBox = new Clutter.ActorBox(); actorBox.x1 = alignX;